package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Permission;
import com.itheima.health.pojo.Role;

import java.util.List;

public interface RoleService {

    List<Role> findAll();

    PageResult pageQuery(QueryPageBean queryPageBean);

    void add(Role role,Integer[] permissionIds,Integer[] menuIds);

    void edit(Role role,Integer[] permissionIds,Integer[] menuIds);

    Role findById(Integer id);

    void delete(Integer id);

    List<Integer> findRoleIdsByMenuId(Integer id);
}
